<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['hotel.resort.list.title']}">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
	<rich:dataTable id="data" var="hotelResort" value="#{hotelResortBean.hotelResortList}" rows="20" width="99%">
		<rich:column style="text-align:center;width:5%;">
			<f:facet name="header">
				<h:selectBooleanCheckbox id="chkAll" onclick="checkAll(this.form,this)" ></h:selectBooleanCheckbox>
			</f:facet>
			<h:selectBooleanCheckbox id="chk" value="#{hotelResort.markAsAction}"></h:selectBooleanCheckbox>
		</rich:column>
		<rich:column style="text-align:center;width:40%;">
			<f:facet name="header">
				<h:outputText value="#{messages['hotel.resort.code.column']}"></h:outputText>
			</f:facet>
			<t:commandLink action="#{hotelResortBean.navEditAction}" actionListener="#{hotelResortBean.editListener}">
				<h:outputText value="#{hotelResort.code}"></h:outputText>
			</t:commandLink>
			
			<f:param id="hotelResortId" value="#{hotelResort.hotelResortId}" />
		</rich:column>
		<rich:column style="text-align:center;width:55%;">
			<f:facet name="header">
				<h:outputText value="#{messages['hotel.resort.desc.column']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{hotelResort.desc}"></h:outputText>
		</rich:column>
		
	</rich:dataTable>
	
	<rich:spacer height="30" />
	
	<rich:datascroller align="left"  for="data" maxPages="20" />

	<rich:spacer height="30" />
	<t:panelGrid columns="2">
		<h:commandButton value="#{messages['create']}" styleClass="button" action="#{hotelResortBean.navCreationAction}" ></h:commandButton>
		<h:commandButton value="#{messages['delete']}" styleClass="button" onclick="#{messages['delete.msg.alert']}" action="#{hotelResortBean.deleteAction}" ></h:commandButton>
	</t:panelGrid>

            
</rich:panel>
